<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.org/ui">

<f:view locale="#{SessaoBean.locale}">
	<h:head>
		<h:outputStylesheet library="css" name="erro.css" />
		<title>#{locale['sistema.nome']} - Erro 505 - Erro Interno de Servidor</title>
		<script type="text/javascript" language="javascript">
			window.onload = function(){
					redirect();
				}

			var counter = 10;
			function redirect(){
				if(counter > 0){
					if(counter >= 10){
						document.getElementById("counterDisplay").innerHTML = "aguarde " + counter + " segundos";
					}else{
						document.getElementById("counterDisplay").innerHTML = "aguarde 0" + counter + " segundos";
					}
					counter--;
					setTimeout("redirect()", 1000);
				}
				else{
					document.getElementById("counterDisplay").innerHTML = "redirecionando para a página principal...";
					window.open("../jPressWEB/index.html", "_self");			
				}
			}
		</script>
	</h:head>
	<h:body>
		<div id="container">
			<div id="erro-titulo">
				<h1>Erro 500</h1>
				<h3>Erro Interno de Servidor</h3>
			</div>
			<div id="erro-mensagem">
				O servidor que executa o SDT Online encontrou uma condição inesperada que o impediu de cumprir o pedido pelo cliente.
			</div>
			<div id="clique">
				<h:form>
					<h:outputLink value="../jPressWEB/index.html">
						<h:outputText value="Clique aqui para retornar ao SDT Online" />
					</h:outputLink>
				</h:form>
			</div>			
			<div id="counterDisplay"></div>
			<hr />
			<br />
			&copy; 2012 &middot; SDT Online Paraíba &middot; Todos os direitos reservados. <br />
		</div>
	</h:body>
</f:view>
</html>